﻿using System;
using Microsoft.Practices.Unity;

namespace BrettM.Web.Hosting
{
    /// <summary>
    /// 
    /// </summary>
    public interface IBootStrapper : IDisposable 
    {
        /// <summary>
        /// This event is triggered when the HttpApplication starts up
        /// </summary>
        /// <param name="container">An instance of the unity container is passed, allowing the bootstrapper to keep values until shutdown</param>
        /// <param name="bag"></param>
        void OnStart(IUnityContainer container, PropertyBag bag);

        /// <summary>
        /// This event is triggered when the HttpApplication shuts down
        /// </summary>
        /// <param name="container"></param>
        /// <param name="bag"></param>
        void OnStop(IUnityContainer container, PropertyBag bag);
    }
}
